< previous page page_364 next page >

Page 364
12181-0364a.gif
Figure 13.19.
The Crystal
Reports control
icon in the Visual
Basic toolbox.
Using the Crystal Control..
After the Crystal Reports control is available in your toolbox, you can use it in your program. To gain access to the control, simply select it from the toolbox and place it on the form from where you will access the reports. When that is done, you can set the control's properties to access the report you created with the report designer.
Note
Because the Crystal Reports control isn't visible at runtime, it appears only as an icon on your form.

The key property that you need to specify is the ReportFileName property. This specifies the actual report that you want to run from your program. Many of the Crystal Reports properties can be modified by using the Crystal Reports Property Pages shown in Figure 13.20. From this page, you can specify the name of the report and whether the report should go to the printer, a preview window, a file, or to a message through the MAPI interface.
On the General tab of the Property Pages, either type the name of the report into the field for the ReportFileName property, or select the report from the File dialog box. Selecting the ReportFileName is the only required property that you need to specify. The other tabs on the properties dialog box, shown in the following list, enable you to customize the report to specific requirements:
Print Window
Sets the properties of the Print display window
Printer
Sets the number of copies to print

 
< previous page page_364 next page >

If you like this book, buy it!